﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Refund.aspx.cs" Inherits="UI_Mail_Refund" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
  <head runat="server">
    <title></title>
    <link href="../../js/jquery.easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../js/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.easyui/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery.easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <style>
      .refund{
       position: relative;left:20px;top:20px;
     }
    </style>
    <script type="text/javascript">
     $(document).ready(function () {
       var eBayUserID = request.QueryString("ebayuserid");
       var orderID = request.QueryString("orderid");
       $('#refund').datagrid({
         url: '../../TableHanders.aspx?act=q&tid=8013&type=0&ebayuserid=' + eBayUserID + '&orderid=' + orderID,
         columns: [[
           { field: 'AMT', title: '退款金额' },
           { field: 'Date', title: '退款日期' },
           { field: 'Reason', title: '退款原因' },
           { field: 'MUser', title: '退款人' },
           { field: 'AUser', title: '审核人' },
           { field: 'Comment', title: '备注' }
         ]]
       });
     });

     var request = {
       QueryString: function (val) {
         var url = window.location.search;
         var re = new RegExp('' + val + '=([^&?]*)', 'ig');
         return ((url.match(re)) ? (url.match(re)[0].substr(val.length + 1)) : null);
       }
     };
    </script>
  </head>
  <body>
      <table id="refund" cls="refund" style="margin:'200px';"></table>
  </body>
</html>
